<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    
    <script src="lib/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.2"></script>
</head>
<body>
    <div id="app">
        <input type="button" value="get请求" @click="getHttp()"></input>
    </div>
    <script>
        var vm=new Vue({
           el:'#app',
           data:{},
           methods:{
               getHttp(){
                   this.$http.get("http://vue.studyit.io/api/getlunbo").then(
                       function(res){
                           console.log(res)
                       }
                   )
               }

           }

        });
    Vue.config.devtools = true
    </script> o
</body>
</html>